package com.choosefine.it.basedata.model;

import com.choosefine.it.base.Base;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 工作种类： eg :水电工、水泥工
 * @auth liaozhanggen 2016-11-22 上午10:46:25
 *
 */
@ApiModel(value = "工种模型", description = "工种基础数据模型")
public class WorkType extends Base{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6830823397285938743L;
	@ApiModelProperty(value = "主键ID", required = true)
	private Integer id;
	/**
	 * 工种名称
	 */
	@ApiModelProperty(value = "工程名字", required = true)
	private String name;
	/**
	 * 父关系id
	 */
	@ApiModelProperty(value = "父关系ID", required = true)
	private Integer superId;
	
	/*
	 * 用于链表排序
	 * add by juchengyang 2017/2/16
	 */
	@JsonIgnore
	private Integer sortNum;
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSuperId() {
		return superId;
	}

	public void setSuperId(Integer superId) {
		this.superId = superId;
	}

	@Override
	public String toString() {
		return "WorkType [id=" + id + ", name=" + name + ", superId=" + superId
				+ "]";
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

}